package cn.bjtu.archiprac.papercheck.application.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

/**
 * Created by Zexin Lin on 4/12/2018.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {
    private String userId;
    private String email;
    private String password;
    private String nickName;
    private String realName;
    private String intro;
    private String paperDir;
    private String resultDir;
    private Boolean isCertificated;
    private Integer userType; // 0 普通用户 1 管理员
    private Date createTime;

    public User() {
    }

    public User(String userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getPaperDir() {
        return paperDir;
    }

    public void setPaperDir(String paperDir) {
        this.paperDir = paperDir;
    }

    public String getResultDir() {
        return resultDir;
    }

    public void setResultDir(String resultDir) {
        this.resultDir = resultDir;
    }

    public Boolean getCertificated() {
        return isCertificated;
    }

    public void setCertificated(Boolean certificated) {
        isCertificated = certificated;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return String.format("[User]%s: %s", email, password);
    }
}
